package com.itboye.jigongbao.retrofit.base;

import com.google.gson.annotations.SerializedName;

/**
 * ResultEntity
 * <p>
 * Created by Mr.w on 2017/12/13.
 * <p>
 * 版本      ${version}
 * <p>
 * 修改时间
 * <p>
 * 修改内容
 */


public class ResultEntity{
    private int code;
    private Object data;
    private String msg;
    @SerializedName("notify_id")
    private long notifyId;
    private String eventType;//请求事件类型

    public ResultEntity(int code, Object data, String msg, long notifyId) {
        this.code = code;
        this.data = data;
        this.msg = msg;
        this.notifyId = notifyId;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getNotifyId() {
        return notifyId;
    }

    public void setNotifyId(long notifyId) {
        this.notifyId = notifyId;
    }

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    @Override
    public String toString() {
        return "ResultEntity{" +
                "code=" + code +
                ", data=" + data +
                ", msg='" + msg + '\'' +
                ", notifyId=" + notifyId +
                '}';
    }
}
